package com.howtodoinjava.model;

import com.howtodoinjava.style.CustomToStringStyle;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.util.Date;

public class WebUser extends AbstractUser {
	private static final long serialVersionUID = 1L;

	private Date lastLoggedIn;

	public Date getLastLoggedIn() {
		return lastLoggedIn;
	}

	public void setLastLoggedIn(Date lastLoggedIn) {
		this.lastLoggedIn = lastLoggedIn;
	}

	/*@Override
	public String toString() 
	{
		return new ToStringBuilder(this)
				.appendSuper(super.toString())
				.append("CustomMessage", "I have been added additionally").toString();
	}*/


	@Override public String toString()
	{
		return 	ToStringBuilder.reflectionToString(this, new CustomToStringStyle());
	}


	
	/*
	 * @Override public String toString() { return new ToStringBuilder(this, new
	 * CustomToStringStyle()) .append("id", id) .append("firstName", firstName)
	 * .append("age", age) .append("birthDate", birthDate).toString(); }
	 */
}
